package com.best4cloud.common.redis;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CachingConfigurerSupport;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;

import javax.annotation.Resource;

@Slf4j
@EnableCaching
@Configuration
public class RedisConfiguration extends CachingConfigurerSupport {

    @Resource
    private RedisConnectionFactory redisConnectionFactory;

}
